package cn.zxh.csdn_maven.work.flow.login;

import java.io.IOException;
import java.util.Map;

import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;

/**
 * 控制工作流的接口
 * @author zhangxinhua
 *
 */
public interface IFlowController {

	/**添加下一个工作到工作流上*/
	public IFlowController setNextFlow(IFlowController flow);
	/**工作内容,url是我们需要执行的地址。通过地址获取cookie*/
	public Map<String, Object> run(HttpClient client,Map<String, Object> params) throws ClientProtocolException, IOException;
}
